function King() { 
  if (!new.target) { 
  throw 'King must be instantiated using "new"' 
  } 
  console.log('King instantiated using "new"'); 
 } 
 new King(); // King instantiated using "new" 
 King(); // Error: King must be instantiated using "new"